package com.hooyh.service;

import com.hooyh.domian.User;

/**
 * Created by hooyh on 2017/3/28.
 */
public interface UserService {
    /**
     * 保存
     * @param user
     * @return
     */
    User save(User user);

    /**
     * 删除
     * @param id
     * @return
     */
    boolean delete(Long id);

    /**
     * 查询
     * @param id
     * @return
     */
    User find(Long id);
}
